package com.banmoon.proxy.staticproxy;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public class TeacherProxy implements ITeacher {

    private Teacher teacherDao;

    @Override
    public void teach() {
        System.out.println("上课铃声响了");
        teacherDao.teach();
        System.out.println("下课铃声响了");
        System.out.println("老师开始布置作业");
    }
}
